Integrand size = 25, antiderivative size = 113 \[ \int \sin ^3(e+f x) \sqrt {a+b \tan ^2(e+f x)} \, dx=\frac {\sqrt {b} \text {arctanh}\left (\frac {\sqrt {b} \sec (e+f x)}{\sqrt {a-b+b \sec ^2(e+f x)}}\right )}{f}-\frac {\cos (e+f x) \sqrt {a-b+b \sec ^2(e+f x)}}{f}+\frac {\cos ^3(e+f x) \left (a-b+b \sec ^2(e+f x)\right )^{3/2}}{3 (a-b) f} \]
[Out]
Time = 0.12 (sec) , antiderivative size = 113, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {3745, 462, 283, 223, 212} \[ \int \sin ^3(e+f x) \sqrt {a+b \tan ^2(e+f x)} \, dx=\frac {\sqrt {b} \text {arctanh}\left (\frac {\sqrt {b} \sec (e+f x)}{\sqrt {a+b \sec ^2(e+f x)-b}}\right )}{f}+\frac {\cos ^3(e+f x) \left (a+b \sec ^2(e+f x)-b\right )^{3/2}}{3 f (a-b)}-\frac {\cos (e+f x) \sqrt {a+b \sec ^2(e+f x)-b}}{f} \]
[In]
[Out]
Rule 212
Rule 223
Rule 283
Rule 462
Rule 3745
Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int \frac {\left (-1+x^2\right ) \sqrt {a-b+b x^2}}{x^4} \, dx,x,\sec (e+f x)\right )}{f} \\ & = \frac {\cos ^3(e+f x) \left (a-b+b \sec ^2(e+f x)\right )^{3/2}}{3 (a-b) f}+\frac {\text {Subst}\left (\int \frac {\sqrt {a-b+b x^2}}{x^2} \, dx,x,\sec (e+f x)\right )}{f} \\ & = -\frac {\cos (e+f x) \sqrt {a-b+b \sec ^2(e+f x)}}{f}+\frac {\cos ^3(e+f x) \left (a-b+b \sec ^2(e+f x)\right )^{3/2}}{3 (a-b) f}+\frac {b \text {Subst}\left (\int \frac {1}{\sqrt {a-b+b x^2}} \, dx,x,\sec (e+f x)\right )}{f} \\ & = -\frac {\cos (e+f x) \sqrt {a-b+b \sec ^2(e+f x)}}{f}+\frac {\cos ^3(e+f x) \left (a-b+b \sec ^2(e+f x)\right )^{3/2}}{3 (a-b) f}+\frac {b \text {Subst}\left (\int \frac {1}{1-b x^2} \, dx,x,\frac {\sec (e+f x)}{\sqrt {a-b+b \sec ^2(e+f x)}}\right )}{f} \\ & = \frac {\sqrt {b} \text {arctanh}\left (\frac {\sqrt {b} \sec (e+f x)}{\sqrt {a-b+b \sec ^2(e+f x)}}\right )}{f}-\frac {\cos (e+f x) \sqrt {a-b+b \sec ^2(e+f x)}}{f}+\frac {\cos ^3(e+f x) \left (a-b+b \sec ^2(e+f x)\right )^{3/2}}{3 (a-b) f} \\ \end{align*}
Time = 1.47 (sec) , antiderivative size = 170, normalized size of antiderivative = 1.50 \[ \int \sin ^3(e+f x) \sqrt {a+b \tan ^2(e+f x)} \, dx=\frac {\cos (e+f x) \left (6 \sqrt {2} (a-b) \sqrt {b} \text {arctanh}\left (\frac {\sqrt {a+b+(a-b) \cos (2 (e+f x))}}{\sqrt {2} \sqrt {b}}\right )+\sqrt {a+b+(a-b) \cos (2 (e+f x))} (-5 a+7 b+(a-b) \cos (2 (e+f x)))\right ) \sqrt {(a+b+(a-b) \cos (2 (e+f x))) \sec ^2(e+f x)}}{6 \sqrt {2} (a-b) f \sqrt {a+b+(a-b) \cos (2 (e+f x))}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(642\) vs. \(2(101)=202\).
Time = 0.50 (sec) , antiderivative size = 643, normalized size of antiderivative = 5.69
method | result | size |
default | \(\frac {\left (\sqrt {\frac {a \cos \left (f x +e \right )^{2}-b \cos \left (f x +e \right )^{2}+b}{\left (\cos \left (f x +e \right )+1\right )^{2}}}\, \cos \left (f x +e \right )^{3} a -\sqrt {\frac {a \cos \left (f x +e \right )^{2}-b \cos \left (f x +e \right )^{2}+b}{\left (\cos \left (f x +e \right )+1\right )^{2}}}\, b \cos \left (f x +e \right )^{3}+\sqrt {\frac {a \cos \left (f x +e \right )^{2}-b \cos \left (f x +e \right )^{2}+b}{\left (\cos \left (f x +e \right )+1\right )^{2}}}\, \cos \left (f x +e \right )^{2} a -\sqrt {\frac {a \cos \left (f x +e \right )^{2}-b \cos \left (f x +e \right )^{2}+b}{\left (\cos \left (f x +e \right )+1\right )^{2}}}\, \cos \left (f x +e \right )^{2} b -3 \ln \left (-4 \sqrt {b}\, \sqrt {\frac {a \cos \left (f x +e \right )^{2}-b \cos \left (f x +e \right )^{2}+b}{\left (\cos \left (f x +e \right )+1\right )^{2}}}-4 \sqrt {b}\, \sqrt {\frac {a \cos \left (f x +e \right )^{2}-b \cos \left (f x +e \right )^{2}+b}{\left (\cos \left (f x +e \right )+1\right )^{2}}}\, \sec \left (f x +e \right )-4 b \sec \left (f x +e \right )\right ) b^{\frac {3}{2}}-3 \sqrt {\frac {a \cos \left (f x +e \right )^{2}-b \cos \left (f x +e \right )^{2}+b}{\left (\cos \left (f x +e \right )+1\right )^{2}}}\, \cos \left (f x +e \right ) a +4 \sqrt {\frac {a \cos \left (f x +e \right )^{2}-b \cos \left (f x +e \right )^{2}+b}{\left (\cos \left (f x +e \right )+1\right )^{2}}}\, b \cos \left (f x +e \right )+3 \ln \left (-4 \sqrt {b}\, \sqrt {\frac {a \cos \left (f x +e \right )^{2}-b \cos \left (f x +e \right )^{2}+b}{\left (\cos \left (f x +e \right )+1\right )^{2}}}-4 \sqrt {b}\, \sqrt {\frac {a \cos \left (f x +e \right )^{2}-b \cos \left (f x +e \right )^{2}+b}{\left (\cos \left (f x +e \right )+1\right )^{2}}}\, \sec \left (f x +e \right )-4 b \sec \left (f x +e \right )\right ) \sqrt {b}\, a -3 \sqrt {\frac {a \cos \left (f x +e \right )^{2}-b \cos \left (f x +e \right )^{2}+b}{\left (\cos \left (f x +e \right )+1\right )^{2}}}\, a +4 \sqrt {\frac {a \cos \left (f x +e \right )^{2}-b \cos \left (f x +e \right )^{2}+b}{\left (\cos \left (f x +e \right )+1\right )^{2}}}\, b \right ) \sqrt {a +b \tan \left (f x +e \right )^{2}}\, \cos \left (f x +e \right )}{3 f \left (a -b \right ) \left (\cos \left (f x +e \right )+1\right ) \sqrt {\frac {a \cos \left (f x +e \right )^{2}-b \cos \left (f x +e \right )^{2}+b}{\left (\cos \left (f x +e \right )+1\right )^{2}}}}\) | \(643\) |
[In]
[Out]
none
Time = 0.40 (sec) , antiderivative size = 277, normalized size of antiderivative = 2.45 \[ \int \sin ^3(e+f x) \sqrt {a+b \tan ^2(e+f x)} \, dx=\left [\frac {3 \, {\left (a - b\right )} \sqrt {b} \log \left (-\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + 2 \, \sqrt {b} \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) + 2 \, b}{\cos \left (f x + e\right )^{2}}\right ) + 2 \, {\left ({\left (a - b\right )} \cos \left (f x + e\right )^{3} - {\left (3 \, a - 4 \, b\right )} \cos \left (f x + e\right )\right )} \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}}}{6 \, {\left (a - b\right )} f}, -\frac {3 \, {\left (a - b\right )} \sqrt {-b} \arctan \left (\frac {\sqrt {-b} \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right )}{b}\right ) - {\left ({\left (a - b\right )} \cos \left (f x + e\right )^{3} - {\left (3 \, a - 4 \, b\right )} \cos \left (f x + e\right )\right )} \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}}}{3 \, {\left (a - b\right )} f}\right ] \]
[In]
[Out]
Timed out. \[ \int \sin ^3(e+f x) \sqrt {a+b \tan ^2(e+f x)} \, dx=\text {Timed out} \]
[In]
[Out]
none
Time = 0.33 (sec) , antiderivative size = 132, normalized size of antiderivative = 1.17 \[ \int \sin ^3(e+f x) \sqrt {a+b \tan ^2(e+f x)} \, dx=\frac {\frac {2 \, {\left (a - b + \frac {b}{\cos \left (f x + e\right )^{2}}\right )}^{\frac {3}{2}} \cos \left (f x + e\right )^{3}}{a - b} - 6 \, \sqrt {a - b + \frac {b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) - 3 \, \sqrt {b} \log \left (\frac {\sqrt {a - b + \frac {b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) - \sqrt {b}}{\sqrt {a - b + \frac {b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) + \sqrt {b}}\right )}{6 \, f} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 1182 vs. \(2 (101) = 202\).
Time = 0.79 (sec) , antiderivative size = 1182, normalized size of antiderivative = 10.46 \[ \int \sin ^3(e+f x) \sqrt {a+b \tan ^2(e+f x)} \, dx=\text {Too large to display} \]
[In]
[Out]
Timed out. \[ \int \sin ^3(e+f x) \sqrt {a+b \tan ^2(e+f x)} \, dx=\int {\sin \left (e+f\,x\right )}^3\,\sqrt {b\,{\mathrm {tan}\left (e+f\,x\right )}^2+a} \,d x \]
[In]
[Out]